﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Text;
using MaxLeaf.Platform.Contract;
using MaxLeaf.Platform.BLLImplementation;
using MaxLeaf.Platform.DataContract;
using CommonsLib.Utility;
using CommonsLib.Settings;

namespace MaxLeaf.Platform.BLLServer
{
    // 注意: 使用“重构”菜单上的“重命名”命令，可以同时更改代码、svc 和配置文件中的类名“OrderProcessBSL”。
    public class CompanyBSL : BaseBLLServer, ICompanyProcess
    {
          
        public bool InitData(int intFromCompanyID, int intToCompanyID)
        {
            CompanyProcessor bll = new CompanyProcessor();

            return bll.InitData(intFromCompanyID, intToCompanyID);
        }


        public string GetUserSN(bool blnDirectCity, int intProvID, int intCityID, int intRegionID)
        {
            CompanyProcessor bll = new CompanyProcessor();

            return bll.GetUserSN(blnDirectCity,   intProvID,   intCityID,   intRegionID);
        }


        public int AddCompany(mCompanyDataModel company, mCompany_InfoDataModel company_info, List<SCPCategoryDataModel> lstSCP, mUser_MainDataModel user, mUser_InfoDataModel user_info)
        {
            CompanyProcessor bll = new CompanyProcessor();

            return bll.AddCompany(  company,   company_info,   lstSCP,   user,   user_info);
        }

        public int AddUser(mUser_MainDataModel User, mUser_InfoDataModel User_info)
        {
            CompanyProcessor bll = new CompanyProcessor();

            return bll.AddUser(User, User_info);
        }
    }
}
